package com.imay.live.fragment.room;

import android.os.Bundle;
import android.view.Gravity;
import android.view.MotionEvent;
import android.view.View;

import com.imay.base.fragment.BaseDialogFragment;
import com.imay.live.R;

/**
 * Created by jeaman on 2017/4/28.
 */

public class RoomGuideFragment extends BaseDialogFragment {
    public static RoomGuideFragment newInstance() {
        return new RoomGuideFragment();
    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_room_guide;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        getView().setOnTouchListener(new View.OnTouchListener() {
            @Override
            public boolean onTouch(View v, MotionEvent event) {
                if (event.getAction() == MotionEvent.ACTION_UP) {
                    dismiss();
                }
                return true;
            }
        });
    }

    @Override
    protected boolean isMatchParent() {
        return true;
    }
}
